package net.lahuobao.finance.entity.accredit;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
@Entity
@Table(name = "accredit_type", schema = "lahuobao")
@DynamicUpdate(true)
@DynamicInsert(true)
@SuppressWarnings("serial")
public class AccreditType {
    private Integer accreditTypeId;

    private String accreditTypeName;

    private String accreditTypeNote;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name ="accredit_type_id",nullable=false,precision=10,scale=0)
    public Integer getAccreditTypeId() {
        return accreditTypeId;
    }

    public void setAccreditTypeId(Integer accreditTypeId) {
        this.accreditTypeId = accreditTypeId;
    }
	@Column(name ="accredit_type_name",nullable=false)
    public String getAccreditTypeName() {
        return accreditTypeName;
    }

    public void setAccreditTypeName(String accreditTypeName) {
        this.accreditTypeName = accreditTypeName == null ? null : accreditTypeName.trim();
    }
	@Column(name ="accredit_type_note",nullable=false)
    public String getAccreditTypeNote() {
        return accreditTypeNote;
    }

    public void setAccreditTypeNote(String accreditTypeNote) {
        this.accreditTypeNote = accreditTypeNote == null ? null : accreditTypeNote.trim();
    }
}